//
//  SacredWords_AppDelegate.h
//  SacredWords
//
//  Created by Orbitus on 8/26/07.
//  Copyright __MyCompanyName__ 2007 . All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "DNAView.h"

@interface SacredWords_AppDelegate : NSObject 
{
	IBOutlet NSArrayController *BlocksController;	
	IBOutlet NSArrayController *CDDController;	
	IBOutlet NSArrayController *UCEController;
	
    IBOutlet NSWindow *window;
	IBOutlet NSTextField *blocksPathControl;
	IBOutlet NSTextField *ucePathControl;
	IBOutlet NSTextField *cddPathControl;
	IBOutlet NSTextField *ncuPathControl;
	IBOutlet NSProgressIndicator *myIndicator;
	IBOutlet NSTextField *mySystemMessages;
	
	IBOutlet DNAView *myDNAView;
	
	NSBundle*	myBundle;
	NSString*	myAppPath;
	NSString*	myAppFolderPath;
	NSString*	myDataFolderPath;
	
	NSDictionary * entities;
	
	NSEntityDescription * uceEntity;
	NSEntityDescription * ncuEntity;
	NSEntityDescription * cddEntity;
	NSEntityDescription * blocksEntity;
	NSEntityDescription * clusterEntity;
	
	
	NSSortDescriptor * uceSort;
	NSSortDescriptor * ncuSort;
	NSSortDescriptor * cddSort;
	NSSortDescriptor * blocksSort;
	NSSortDescriptor * clusterSort;
	
	NSArray * uceSortDescriptors;
	NSArray * ncuSortDescriptors;
	NSArray * cddSortDescriptors;
	NSArray * blocksSortDescriptors;
	NSArray * clusterSortDescriptors;
	
	NSFetchRequest * uceFetch;
	NSFetchRequest * ncuFetch;
	NSFetchRequest * cddFetch;
	NSFetchRequest * blocksFetch;
	NSFetchRequest * clusterFetch;
	
	NSPredicate * predicate;
	
	
    NSPersistentStoreCoordinator *persistentStoreCoordinator;
    NSManagedObjectModel *managedObjectModel;
    NSManagedObjectContext *managedObjectContext;
}

- (NSPersistentStoreCoordinator *)persistentStoreCoordinator;
- (NSManagedObjectModel *)managedObjectModel;
- (NSManagedObjectContext *)managedObjectContext;

- (IBAction)saveAction:sender;
- (IBAction)importAllData:sender;

@end
